<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>额度管理</a></li>
			<li><a href="{:U('Amount/info')}">添加额度</a></li>
			<if condition="(get_current_admin_id() eq 1)">
			<li><a href="{:U('Amount/bank_daifu')}">代付</a></li>
			</if>
		</ul>
		<form class="well form-search" method="post" action="">
			额度: 
			<input type="number" name="amount"  value="{:I('request.amount')}" placeholder="请输入额度">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="">清空</a>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>显示名称</th>
						<th>状态</th>
						<th>额度</th>
						<th>咨询费</th>
						<th>审核费</th>
						<th>顾问费</th>
						<th>修改时间</th>
						<th>逾期费用(天)</th>
						<th>续期费用(天)</th>
						<th>续期7天费用</th>
						<th>保证金</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
					<foreach name="list" item="vo">
					<tr>
						<td align="center">{$vo.name}</td>
						<td align="center">{$vo['status']==0?'禁用':'启用'}</td>
						<td>{$vo.amount}</td>
						<td>{$vo.interest}</td>
						<td>{$vo.examine}</td>
						<td>{$vo.consulting}</td>
						<td>{$vo.uptime}</td>
						<td>{$vo.overdue_fee}</td>
						<td>{$vo.renewal_fee}</td>
						<td>{$vo.renewal_fee_sev}</td>
						<td>{$vo.bond_amount}</td>
						<td align="center">
							<a href="{:U('Amount/info',array('id'=>$vo['id']))}">编辑额度</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>